<template>
	<view class="wrapper">
		<view class="erwei_box">
			<view class="head_name">
				<dimg :src="userinfo.userId | avatar" mode="" class="user_head"></dimg>
				<text class="user_name">{{userinfo.nickname}}</text>
			</view>
			<view class="biger center">
				<!-- <image src="../../static/user/wholeErwei.png" mode="" class="user_erweima"></image> -->
				<view class="qrimg">
				    <tki-qrcode
				    ref="qrcode"
					class="user_erweima"
					size=286
					:val='userinfo.userId'/>
				</view>
			</view>
			<view class="tips">扫一扫上面的二维码图案，加我专聊</view>
		</view>
	</view>
</template>

<script>
	import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
export default {
	data() {
		return {
			userinfo: ''
		};
	},
	components:{tkiQrcode},
	onLoad() {
		let that=this
		this.userinfo = uni.getStorageSync('userinfo');
	},
	methods: {}
};
</script>

<style>
.wrapper {
	background: #f3f3f3;
}
.erwei_box {
	width: 670rpx;
	height: 662rpx;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0rpx 0rpx 19rpx 1rpx rgba(225, 225, 225, 1);
	border-radius: 12rpx;
	margin: 181rpx 40rpx 0 40rpx;
}

.head_name {
	display: flex;
	flex-direction: row;
}
.qrimg{
	overflow: hidden;
	margin: 0 auto;
}
.head_name .user_head {
	width: 140rpx;
	height: 140rpx;
	border-radius: 50%;
	margin: 30rpx 30rpx 0 30rpx;
	overflow: hidden;
}

.head_name .user_name {
	display: block;
	height: 31rpx;
	font-size: 32rpx;
	font-weight: 500;
	color: rgba(51, 51, 51, 1);
	margin: 84rpx 0 0 0;
}
.biger {
	text-align: center;
}
.biger .user_erweima {
	width: 286rpx;
	height: 286rpx;
	margin: 81rpx 0 60rpx 0;
}

.tips {
	height: 27rpx;
	font-size: 26rpx;
	font-family: PingFang SC;
	font-weight: 500;
	color: rgba(102, 102, 102, 1);
	text-align: center;
	margin-bottom: 30rpx;
}
</style>
